﻿using UnityEngine;
using UnityEditor;
using PureMVC.Patterns;
using PureMVC.Interfaces;
using OrderSystem;

public class SendFoodToClientCommand : SimpleCommand
{
    public override void Execute(INotification notification)
    {
        base.Execute(notification);
     
        ClientProxy clientProxy = Facade.RetrieveProxy(ClientProxy.NAME) as ClientProxy;
        clientProxy.waiterSendFoodToClient((notification.Body as WaiterItem).serverClientitem);

        SendNotification(OrderSystemEvent.WAITER_WAIT_CLIENT_HELLO, notification.Body);
    }
}